<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>登录</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/common/animate.css"/>
		<link rel="stylesheet" type="text/css" href="css/login.css"/>
		<activityandroid:name=".activity.HomeActivity"android:windowSoftInputMode="adjustPan|stateHidden"></activity>
	</head>
	<body>
		<!--登录页开始-->
		<div class="web">
			<!--头部-->
			<header>
				<div class="nav">
					<a href="index.html">取消</a>
					<h1>登录</h1>
				</div>
			</header>
			<div class="content">
				<!--logo-->
				<div class="logo_wrap">
					<img src="images/images/logo.png"/>
				</div>
				<!--登录内容-->
				<form <!--action="#" method="post"-->>
					<div class="user_wrap">
						<p>账号</p>
						<input type="text" name="user" id="user" value="" placeholder="请输入手机号码" />
					</div>
					<div class="pwd_wrap">
						<p>密码</p>
						<input type="password" name="pwd" id="pwd" value="" placeholder="请输入密码"/>
					</div>
					<div class="sub_btn">
						<p>登 录</p>
					</div>
					<div class="reg_find">
						<a href="register.html">注册用户</a>
						<a href="findpassword.html">忘记密码</a>
					</div>
				</form>
			</div>
			<footer>
				<a href="#" class="wx iconfont">微信登录</a>
				<div class="line"></div>
				<a href="#" class="qq iconfont">QQ登录</a>
			</footer>
		</div>
		<!--登录页结束-->
		<script src="js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/wow.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			var w = new WOW();
			w.init();
			//判断
			var user_inp = document.querySelector("#user");
			var pwd_inp = document.querySelector("#pwd");
			var login_btn = document.querySelector(".sub_btn");
			login_btn.addEventListener("click",function(){
				var user_inp = document.querySelector("#user");
				var pwd_inp = document.querySelector("#pwd");
				if(user_inp.value == ""){
					alert("账户或密码为空，请重新输入");
				}
				else if(pwd_inp.value == ""){
					alert("账户或密码为空，请重新输入");
				}
				else{
					location.href="build.html"
				}
			})
		</script>
	</body>
</html>
